package com.tarena.lbs.business.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.business.pojo.po.BusinessPO;
import com.tarena.lbs.business.pojo.query.BusinessQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface BusinessMapper extends BaseMapper<BusinessPO>{

    List<BusinessPO> SelectListByQuery(BusinessQuery query);
    Long countByBusinessName(String name);
    void deleteById(Integer businessId);
    BusinessPO findById(Integer id);
    BusinessPO busiStoreDetail(Integer businessId);
    BusinessPO findByName(String businessName);

    void insertByBusinessPO(BusinessPO businessPO);
}